package cn.demographic.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import cn.demographic.util.FamtDate;

public class Family {
	
    private Integer withId;

    private Integer number;

    private Integer betweenId;

    private String citizenship;

    private String name;

    private Integer gender;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String birthtime;
    private Date birth;

    private Integer certificate;

    private Integer thisCity;

    private String enterUser;

    private Date enterTime;

    
    private Relationship relationship;				//家庭关系
    
    private Integer userid;

    
    public String getBirthtime() {
		return FamtDate.fordate(birth);
	}

	public void setBirthtime(String birthtime) {
		this.birthtime = birthtime;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userId) {
		this.userid = userId;
	}

	public Integer getWithId() {
        return withId;
    }

    public void setWithId(Integer withId) {
        this.withId = withId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getBetweenId() {
        return betweenId;
    }

    public void setBetweenId(Integer betweenId) {
        this.betweenId = betweenId;
    }

    public String getCitizenship() {
        return citizenship;
    }

    public void setCitizenship(String citizenship) {
        this.citizenship = citizenship == null ? null : citizenship.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Relationship getRelationship() {
		return relationship;
	}


	public void setRelationship(Relationship relationship) {
		this.relationship = relationship;
	}


	public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Integer getCertificate() {
        return certificate;
    }

    public void setCertificate(Integer certificate) {
        this.certificate = certificate;
    }

    public Integer getThisCity() {
        return thisCity;
    }

    public void setThisCity(Integer thisCity) {
        this.thisCity = thisCity;
    }

    public String getEnterUser() {
        return enterUser;
    }

    public void setEnterUser(String enterUser) {
        this.enterUser = enterUser == null ? null : enterUser.trim();
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }
}